package de.backtomedieval.scenarios;

import de.backtomedieval.R;
import de.backtomedieval.main.Game;
import de.backtomedieval.units.UnitSet;

public class Defend_GreatSiege extends AbstractDefendYourCityScenario {

	
	@Override
	public String getName() {
		return Game.getString(R.string.scen3_name);
	}
	
	@Override
	public String getDescription() {
		return Game.getString(R.string.scen3_desc);
	}
	
	public Defend_GreatSiege() {
		super();

	}

	@Override
	public int getID() {
		return 3;
	}

	@Override
	public void atGamestart() {
		UnitSet enemy = this.getEnemy();
		int diff = Game.getDifficulty();
		if (diff==0) {
			enemy.setArchers(25);
			enemy.setShortSwordsmen(35);
			enemy.setLongSwordsmen(35);
			enemy.setTwohandedswordman(50);
			enemy.setSpearman(65);
			enemy.setHalberdier(35);
			enemy.setHoplit(35);
		} else if (diff==1) {
			enemy.setArchers(45);
			enemy.setShortSwordsmen(30);
			enemy.setLongSwordsmen(50);
			enemy.setTwohandedswordman(45);
			enemy.setSpearman(50);
			enemy.setHalberdier(35);
			enemy.setHoplit(30);
		} else if (diff==2) {
			enemy.setArchers(42);
			enemy.setShortSwordsmen(53);
			enemy.setLongSwordsmen(55);
			enemy.setTwohandedswordman(47);
			enemy.setSpearman(58);
			enemy.setHalberdier(42);
			enemy.setHoplit(57);
		}  else if (diff==3) {
			enemy.setArchers(72);
			enemy.setShortSwordsmen(60);
			enemy.setLongSwordsmen(53);
			enemy.setTwohandedswordman(82);
			enemy.setSpearman(50);
			enemy.setHalberdier(81);
			enemy.setHoplit(68);
		}  else if (diff==4) {
			enemy.setArchers(80);
			enemy.setShortSwordsmen(90);
			enemy.setLongSwordsmen(120);
			enemy.setTwohandedswordman(100);
			enemy.setSpearman(90);
			enemy.setHalberdier(100);
			enemy.setHoplit(72);
		} else {
			enemy.setArchers(120);
			enemy.setShortSwordsmen(140);
			enemy.setLongSwordsmen(160);
			enemy.setTwohandedswordman(130);
			enemy.setSpearman(140);
			enemy.setHalberdier(150);
			enemy.setHoplit(100);
		}

		this.setAttacksAtRound(2500);
	}

}
